Radar Host Communication library  2020.08.13
EndpointMcuStatus

EndpointMcuStatus documentation. More...

Data Structures

struct  device_status_response_t
 

Typedefs

typedef void(* Callback_Device_Status_t) (void *context, int32_t protocol_handle, uint8_t endpoint, const device_status_response_t *pStatus)
 

Functions

int32_t ep_device_status_is_compatible_endpoint (int32_t protocol_handle, uint8_t endpoint)
 This function checks if an endpoint in a device is a MCU Status endpoint. More...
 
void ep_device_status_set_callback_mcu_status (Callback_Device_Status_t callback, void *context)
 This functions registers a callback device status. More...
 
int32_t ep_device_status_get_status (int32_t protocol_handle, uint8_t endpoint)
 

Detailed Description

EndpointMcuStatus documentation.

Typedef Documentation

◆ Callback_Device_Status_t

typedef void(* Callback_Device_Status_t) (void *context, int32_t protocol_handle, uint8_t endpoint, const device_status_response_t *pStatus)

Definition at line 103 of file EndpointRadarDeviceStatus.h.

Function Documentation

◆ ep_device_status_get_status()

int32_t ep_device_status_get_status ( int32_t  protocol_handle,
uint8_t  endpoint 
)

Definition at line 222 of file EndpointRadarDeviceStatus.c.

◆ ep_device_status_is_compatible_endpoint()

int32_t ep_device_status_is_compatible_endpoint ( int32_t  protocol_handle,
uint8_t  endpoint 
)

This function checks if an endpoint in a device is a MCU Status endpoint.

This function checks type and version of the specified endpoint in a connected device and returns a code that indicates if that endpoint is compatible to the radar endpoint implementation in this module.

Parameters
[in]protocol_handleA handle to the connection to the sensor device.
[in]endpointThe endpoint in the connected device to be checked for compatibility.
Returns
If the specified endpoint is compatible to this implementation the function returns 0. If the endpoint is not compatible, a negative error code is returned.

Definition at line 209 of file EndpointRadarDeviceStatus.c.

◆ ep_device_status_set_callback_mcu_status()

void ep_device_status_set_callback_mcu_status ( Callback_Device_Status_t  callback,
void *  context 
)

This functions registers a callback device status.

If a callback for this message type is registered, that callback is issued every time, a connected board sends a message containing the frame format. If no callback is registered the message is ignored.

Connection and handle and endpoint number of the sending endpoint are passed to the callback along with the message data. Furthermore the pointer context set by this function is forwarded to the callback.

For more information about the callback function see Callback_Chirp_Duration_t.

Parameters
[in]callbackThe function to be called when a device statusrequest message is received.
[in]contextA data pointer that is forwarded to the callback function.

Definition at line 216 of file EndpointRadarDeviceStatus.c.